package edu.wong.pro.action;

import com.opensymphony.xwork2.ActionSupport;

import edu.wong.pro.iservice.IMember;

public class ModifyMemberAction extends ActionSupport{
	private String number;
	private String name;
	private String sex;
	private String borth;
	private String homeaddr;
	private String indate;
	private String shschool;
	private String college;
	private String major;
	private String schooladdr;
	private String phone;
	private String cornet;
	private String email;
	private String workaddr;
	private String worktype;
	private String position;
	private String detail;
	private IMember iMember;
	
	public IMember getiMember() {
		return iMember;
	}
	public void setiMember(IMember iMember) {
		this.iMember = iMember;
	}
	public String execute(){
		iMember.modifyMember(number, name, sex, borth, homeaddr, indate, shschool, college, major, schooladdr, phone, cornet, email, workaddr, worktype, position, detail);
		//System.out.println(name+sex+borth+homeaddr+indate+shschool+college+major+ schooladdr+ phone+cornet+ email+workaddr+worktype+detail+ position);

			return "ok";
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getBorth() {
		return borth;
	}
	public void setBorth(String borth) {
		this.borth = borth;
	}
	public String getHomeaddr() {
		return homeaddr;
	}
	public void setHomeaddr(String homeaddr) {
		this.homeaddr = homeaddr;
	}
	public String getIndate() {
		return indate;
	}
	public void setIndate(String indate) {
		this.indate = indate;
	}
	public String getShschool() {
		return shschool;
	}
	public void setShschool(String shschool) {
		this.shschool = shschool;
	}
	public String getCollege() {
		return college;
	}
	public void setCollege(String college) {
		this.college = college;
	}
	public String getMajor() {
		return major;
	}
	public void setMajor(String major) {
		this.major = major;
	}
	public String getSchooladdr() {
		return schooladdr;
	}
	public void setSchooladdr(String schooladdr) {
		this.schooladdr = schooladdr;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getCornet() {
		return cornet;
	}
	public void setCornet(String cornet) {
		this.cornet = cornet;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getWorkaddr() {
		return workaddr;
	}
	public void setWorkaddr(String workaddr) {
		this.workaddr = workaddr;
	}
	public String getWorktype() {
		return worktype;
	}
	public void setWorktype(String worktype) {
		this.worktype = worktype;
	}
	public String getPosition() {
		return position;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public String getDetail() {
		return detail;
	}
	public void setDetail(String detail) {
		this.detail = detail;
	}
	
}
